package com.zt.ztyh.vo.loan;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Schema(name = "个人贷款信息表")
public class LoanVo implements Serializable {
    @Schema(name = "用户id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long uid;

    @Schema(name = "用户姓名")
    private String realName;

    @Schema(name = "用户手机号")
    private String phone;

    @Schema(name = "身份证号")
    private String idCard;

    @Schema(name = "贷款额度")
    private BigDecimal amount;

    @Schema(name = "还款日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date requiredate;

    @Schema(name = "实际还款日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date backDate;

    @Schema(name = "贷款日期")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date createTime;

    @Schema(name = "贷款名称")
    private String lname;
    @Schema(name = "贷款利率")
    private Double rate;

    @Schema(name = "贷款状态")
    private Integer state;

    @Schema(name = "实际还款金额")
    private BigDecimal redundancy1;

    @Schema(name = "逾期金额")
    private BigDecimal redundancy2;

    @Schema(name = "中间id")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    @Schema(name = "贷款logo")
    private String remark;

}
